/*************************************************************************
	> File Name: PrintLineNumTest.java
	> Author: Potter
	> Mail: tobewhatwewant@gmail.com 
	> Created Time: 2014年06月01日 星期日 13时40分18秒
 ************************************************************************/
import java.io.*;

public class PrintLineNumTest {
    public static void main(String [] args) throws Exception {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr); 

        PrintWriter pw = new PrintWriter("tmp.txt");
        String str = null;
        int counter = 1;
        while(!(str=br.readLine()).equals("bye")) {
            pw.println(counter+" : "+str);
            counter++;
        }
        pw.close();
    }
}
